Apache Hive Essentials by Dayong Du
Author:Dayong Du
Language: eng
Format: epub
Tags: COM021000 - COMPUTERS / Databases / General, COM018000 - COMPUTERS / Data Processing, COM021040 - COMPUTERS / Databases / Data Warehousing
Publisher: Packt Publishing
Published: 2018-06-29T12:49:36+00:00
Here is an example of merging data in HQL:
-- Create another table as merge source
> CREATE TABLE employee_update (
> emp_id int,
> name string,
> start_date date,
> quit_date date,
> quit_flag string
> );
No rows affected (0.127 seconds)
-- Populate data
> INSERT INTO TABLE employee_update VALUES
> (100, 'Michael', '2017-02-01', '2018-01-01', 'Y'), -- People quit
> (102, 'Steven', '2018-01-02', null, 'N'), -- People has start_date update
> (105, 'Lily', '2018-04-01', null, 'N'); -- People newly started
No rows affected (19.832 seconds)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6806)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6783)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6669)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6454)
Driving Data Quality with Data Contracts by Andrew Jones(6399)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6156)
Learning SQL by Alan Beaulieu(6004)
Weapons of Math Destruction by Cathy O'Neil(5797)
Big Data Analysis with Python by Ivan Marin(5396)
Data Engineering with dbt by Roberto Zagni(4402)
Solidity Programming Essentials by Ritesh Modi(4050)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3909)
Pandas Cookbook by Theodore Petrou(3613)
Blockchain Basics by Daniel Drescher(3306)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2820)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2803)
Mastering Python for Finance by Unknown(2748)
